package com.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bean.Openingreport;
import com.dao.OpeningreportMapper;
import com.service.OpeningreportService;
@Service
public class OpeningreportServiceImpl implements OpeningreportService {
	
	@Autowired
	OpeningreportMapper dao;
	
	public void insert(Openingreport op) {
		dao.insert(op);
	}

	public List<Openingreport> select() {
		return	dao.select();
	}

	public Openingreport selectOne(Integer id) {
		return dao.selectByPrimaryKey(id);
	}

	public List<Openingreport> selectBy(Map<String, Object> map) {
		return dao.selectBy(map);
	}
	public void update(Openingreport op) {
		dao.updateByPrimaryKeySelective(op);
	}

	public List<Openingreport> selectByState(String state) {
		// TODO Auto-generated method stub
		return dao.selectByState(state);
	}

	public Integer selectMax() {
		return dao.selectMax();
	}

}
/*=======
package com.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bean.Openingreport;
import com.dao.OpeningreportMapper;
import com.service.OpeningreportService;
@Service
public class OpeningreportServiceImpl implements OpeningreportService {
	
	@Autowired
	OpeningreportMapper dao;
	
	public Integer insert(Openingreport op) {
		return dao.insert(op);
	}

	public List<Openingreport> select() {
		return	dao.select();
	}

	public Openingreport selectOne(Integer id) {
		return dao.selectByPrimaryKey(id);
	}

	public List<Openingreport> selectBy(Map<String, Object> map) {
		return dao.selectBy(map);
	}
	public void update(Openingreport op) {
		dao.updateByPrimaryKeySelective(op);
	}

	public Integer selectMax() {
		return dao.selectMax();
	}

}
*/
